import { DeviceManager } from './common/mpj-deviceCenter/src/deviceManager';
import { PrintService } from './service/print.service';
import { PrinterModule } from './page/device/printer/printer.module';
import { NumberPanelService } from './component/primeng/numberpanel/numberpanel.service';
import { NumberPanelModule } from './component/primeng/numberpanel/numberpanel.module';
import { OnLineService, OnLineModule } from './component/primeng/online/online.module';
import { SearchLDCModule } from './page/searchLDC/searchLDC.module';
import { InitModule } from './page/init/init.module';
import { Remark } from './component/primeng/remark/remark.module';
import { ModifierService } from './service/modifier.service';
import { ServiceBase } from './service/serviceBase';
import { Authentication } from './service/authtication.service';
import { TableDetailModule } from './page/tableDetail/tableDetail.module';
import { OrderModule } from './page/order/order.module';
import { TableModule } from './page/table/table.module';
import { AboutModule } from './page/about/about.module';
import { ResetModule } from './page/reset/reset.module';
import { SetupModule } from './page/setup/setup.module';
import { HomeModule } from './page/home/home.module';
import { SyncModule } from './page/dataSync/sync.module';
import { EmployeeLoginModule } from './page/employeeLogin/employeeLogin.module';
import { CheckEnvModule } from './page/checkEnv/checkEnv.module';
import { BindDeviceModule } from './page/bindDevice/bindDevice.module';
import { StoreModule } from './page/selectStore/stores.module';
import { LoginModule } from './page/storeLogin/login.module';
import { SyncDataService } from './service/sync.service';
import { SystemService } from './service/system.service';
import { MessageBoxService } from './component/messageBoxService';
import { NavigateService } from './service/navigate.service';
import { LoadMaskModule } from './component/primeng/loadmask/loadmask.module';
import { Confirm } from './component/primeng/confirm/confirm.module';
import { ROUTES, AppRoutingModule } from './app.routes';
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { MaterialModule } from '@angular/material';
import { HttpModule, JsonpModule } from '@angular/http';
import { FlexLayoutModule } from '@angular/flex-layout';
import { UpdateModule } from "./page/update/update.module";
import { IonicModule, IonicApp } from "ionic-angular";

@NgModule({
    imports: [
        BrowserModule,
        AppRoutingModule,
        MaterialModule,
        HttpModule,
        JsonpModule,
        InitModule,
        SearchLDCModule,
        LoginModule,
        StoreModule,
        BindDeviceModule,
        CheckEnvModule,
        EmployeeLoginModule,
        SyncModule,
        HomeModule,
        SetupModule,
        ResetModule,
        AboutModule,
        TableModule,
        TableDetailModule,
        OrderModule,
        LoadMaskModule,
        FlexLayoutModule,
        NumberPanelModule,
        PrinterModule,
        OnLineModule,
        UpdateModule,
        IonicModule.forRoot(AppComponent)
    ],
    declarations: [
        AppComponent
    ],
    providers: [
        ServiceBase,
        NavigateService,
        MessageBoxService,
        SystemService,
        SyncDataService,
        Authentication,
        ModifierService,
        OnLineService,
        NumberPanelService,
        DeviceManager,
        PrintService
    ],
    bootstrap: [IonicApp],
    schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class AppModule { }
